
import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/views/Home'
import Login from '@/views/Login'
import Search from '@/views/Search'
import Register from '@/views/Register'


Vue.use(VueRouter);



export default new VueRouter({
  mode: 'history',
  routes:[
    {
      path:'/home',
      component:Home,
      name:'Home' 
    },
    {
      path:'/login',
      component:Login,
      name:'Login' ,
      meta:{
        isHiddenFooter:true
      }
    },
    {
      path:'/search',
      component:Search,
      name:'Search' 
    },
    {
      path:'/register',
      component:Register,
      name:'Register' ,
      meta:{
        isHiddenFooter:true
      }
      
    },
    {
      path:'*',
      redirect:'/home'
    },
  ]
})


